package com.mingke.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mingke.Domain.SettleEntity;
import com.mingke.Utils.PageUtils;
import com.mingke.Utils.Query;
import com.mingke.dao.SettleDao;
import com.mingke.service.SettleService;
import org.springframework.stereotype.Service;

import java.util.Map;



@Service("settleService")
public class SettleServiceImpl extends ServiceImpl<SettleDao, SettleEntity> implements SettleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SettleEntity> page = this.page(
                new Query<SettleEntity>().getPage(params),
                new QueryWrapper<SettleEntity>()
        );

        return new PageUtils(page);
    }

}